﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TARS.Customer
{
    public partial class FeedBack : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click1(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                using (var db = new TARSDelivery_EprojectEntities())
                {
                    string time = DateTime.Now.ToString();
                    bool status = true;
                    String rate = rtRating.Value.ToString();
                    var submit = db.Insert_FeedBack(RadEditor1.Content, txtPhone.Text, txtEmail.Text, txtFullName.Text, rate, status, time);
                }

                Label6.Visible = true;
                
            }
        }
    }
}